<template>
	<view>
		<view class="ended-active">
			<image class="ended-image" :src="endedImage" mode=""></image>

			<view class="ended-title">
				<view class="ended-name">
					<view class="ended-status">
						{{ endedTime }}
					</view>
					{{ endedName }}
				</view>
				<view class="ended-click">
					<navigator :url="endedUrl">立即参与 ></navigator>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		name: "EndedItem",
		props: ['endedImage', 'endedName', 'endedTime', 'endedUrl'],
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.ended-active {
		margin-bottom: 10px;
		width: 750rpx;
		// background-color: #f2c256;

		.ended-image {
			width: 100%;
		}

		.ended-title {
			display: flex;
			align-items: center;
			margin-left: 5px;
			height: 45px;
			
			.ended-name {
				flex: 3;
				font-size: 16px;
				font-weight: 700;
				
				.ended-status {
					margin-right: 5px;
					padding: 3px 6px;
					font-size: 14px;
					font-weight: 700;
					// border-radius: 5px;
					border-radius: 0 12px 0 12px;
					background-color: #98989a;
					display: inline-block;
				}
			}
			
			.ended-click {
				flex: 1;
				color: #659199;
				height: 15px;
				// line-height: 100%;
				// align-items: center;
				// text-align: center;
			}
		}
		

		
	}
</style>